package com.xxx.chat.message;

import lombok.Data;
import lombok.ToString;

/**
 * 聊天室：消息响应抽象父类
 */
@Data
@ToString(callSuper = true)
public abstract class AbstractResponseMessage extends Message {

    private boolean success;  // 是否成功
    private String reason;    // 失败原因

    public AbstractResponseMessage() {
    }

    public AbstractResponseMessage(boolean success, String reason) {
        this.success = success;
        this.reason = reason;
    }
}
